package com.youhome.service.service;


import com.youhome.common.exception.CustomException;
import com.youhome.service.model.CustomCompanyTokenDetails;
import com.youhome.service.model.ListHubPhoto;

import java.util.List;

/**
 * Created by chen365 on 2018/05/09.
 */
public interface ListHubPhotoService {
    List<ListHubPhoto> selectByBean(ListHubPhoto record);

    int insertBatch(List<ListHubPhoto> list);

    int deletePhotoByBean(ListHubPhoto record);

    List<String> selectTop10ByBean(String houseId);

    List<String> selectPhotoByHouseId(String houseId);

    void deletePhoto(String houseId, String ossUrl) throws CustomException;

    void delete(String houseId, String photoUrl, CustomCompanyTokenDetails customCompanyTokenDetails) throws CustomException;

    List<String> selectPhotoOfMobile(String houseId) throws CustomException;

    List<String> selectOSSUrlByBean(String houseId, Integer count);
}
